package com.luych.toolbox.common.feign.param.gateway.center;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("WebSocket站内信")
public class WebSocketLetter {

    @ApiModelProperty("ID")
    private String id;
    @ApiModelProperty("类型")
    private Type type;
    @ApiModelProperty("标题")
    private String message;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("数据")
    private Object data;

    public WebSocketLetter(String id, Type type, String message, String content) {
        this.id = id;
        this.type = type;
        this.message = message;
        this.content = content;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getId() {
        return id;
    }

    public Type getType() {
        return type;
    }

    public String getMessage() {
        return message;
    }

    public String getContent() {
        return content;
    }

    public Object getData() {
        return data;
    }

    public static enum Type {
        INFO, WARN, SUCCESS, ERROR
    }
}
